package com.example.shop.goods.dto;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.data.elasticsearch.annotations.Document;

import java.util.List;

@Data
@NoArgsConstructor
@Accessors(chain = true)
@Document(indexName = "evaluation-detail-browse-info",shards = 2,refreshInterval = "30s")
public class EvaluationDetailBrowseInfo extends EvaluationBrowseInfo{
    //该评价下面的对该评价的评论
    List<Comments> commentsList;
    //该评价下面的评论的回复评论
    List<CommentsReply> commentsReplyList;

    public EvaluationDetailBrowseInfo(long evaluationId){
        this.evaluationId = evaluationId;
    }
    @Override
    public String toString() {
        return "EvaluationDetailBrowseInfo{" +
                super.toString()+
                "commentsList=" + commentsList +
                ", commentsReplyList=" + commentsReplyList +
                '}';
    }
}
